import { State } from '../interfaces/redux';
import React from 'react'
import { connect } from 'react-redux'

function Counter({ n }: any) {
  return  <div>数字：{n}</div>
}

const mapStateToProps = (state: State) => ({
  n: state.n
})

export default connect(
  mapStateToProps,
  null
)(Counter)
